<?php

/*
 * Хэндлер "стандартных" сессий PHP
 */

namespace T4\SESSION;

class StandardHandler extends AHandler {

	public function init() {
		\session_start();
	}

	public function set($name, $value) {
		$_SESSION[$name] = $value;
	}

	public function get($name) {
		return isset($_SESSION[$name]) ? $_SESSION[$name] : null;
	}

	public function delete($name) {
		unset($_SESSION[$name]);
	}

}